package com.ruoyi.project.query.paeaDsNewOldAccount.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.query.paeaDsNewOldAccount.mapper.PaeaDsNewOldAccountMapper;
import com.ruoyi.project.query.paeaDsNewOldAccount.domain.PaeaDsNewOldAccount;
import com.ruoyi.project.query.paeaDsNewOldAccount.service.IPaeaDsNewOldAccountService;

/**
 * 新旧账号Service业务层处理
 *
 * @author gang.wei
 * @date 2020-04-06
 */
@Service
public class PaeaDsNewOldAccountServiceImpl extends ServiceImpl<PaeaDsNewOldAccountMapper, PaeaDsNewOldAccount> implements IPaeaDsNewOldAccountService
{
    @Autowired
    private PaeaDsNewOldAccountMapper paeaDsNewOldAccountMapper;

    /**
     * 查询新旧账号列表
     *
     * @param paeaDsNewOldAccount 新旧账号
     * @return 新旧账号
     */
    @Override
    public List<PaeaDsNewOldAccount> selectPaeaDsNewOldAccountList(PaeaDsNewOldAccount paeaDsNewOldAccount)
    {
        return paeaDsNewOldAccountMapper.selectPaeaDsNewOldAccountList(paeaDsNewOldAccount);
    }

    /**
     * 新增新旧账号
     *
     * @param paeaDsNewOldAccount 新旧账号
     * @return 结果
     */
    @Override
    public int insertPaeaDsNewOldAccount(PaeaDsNewOldAccount paeaDsNewOldAccount)
    {
        return paeaDsNewOldAccountMapper.insertPaeaDsNewOldAccount(paeaDsNewOldAccount);
    }

    /**
     * 修改新旧账号
     *
     * @param paeaDsNewOldAccount 新旧账号
     * @return 结果
     */
    @Override
    public int updatePaeaDsNewOldAccount(PaeaDsNewOldAccount paeaDsNewOldAccount)
    {
        return paeaDsNewOldAccountMapper.updatePaeaDsNewOldAccount(paeaDsNewOldAccount);
    }

}
